package com.gagakuai.transport.channel;

import java.util.Map;

/*
 * @description: 对于channel 的一系列配置的集合
 * @author: houhong
 * @create: 2024-03-30 11:24
 */
public interface ChannelConfig {

    Map<ChannelOption<?>, Object> getOptions();


    boolean setOptions(Map<ChannelOption<?>, ?> options);

    <T> T getOption(ChannelOption<T> option);


    <T> boolean setOption(ChannelOption<T> option, T value);


}
